Optimal. Leaf size=40 \[ \frac {b x}{d}-\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {388, 205} \begin {gather*} \frac {b x}{d}-\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 388
Rubi steps
\begin {align*} \int \frac {a+b x^2}{c+d x^2} \, dx &=\frac {b x}{d}-\frac {(b c-a d) \int \frac {1}{c+d x^2} \, dx}{d}\\ &=\frac {b x}{d}-\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 40, normalized size = 1.00 \begin {gather*} \frac {b x}{d}-\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a+b x^2}{c+d x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.80, size = 99, normalized size = 2.48 \begin {gather*} \left [\frac {2 \, b c d x + {\left (b c - a d\right )} \sqrt {-c d} \log \left (\frac {d x^{2} - 2 \, \sqrt {-c d} x - c}{d x^{2} + c}\right )}{2 \, c d^{2}}, \frac {b c d x - {\left (b c - a d\right )} \sqrt {c d} \arctan \left (\frac {\sqrt {c d} x}{c}\right )}{c d^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.57, size = 34, normalized size = 0.85 \begin {gather*} \frac {b x}{d} - \frac {{\left (b c - a d\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{\sqrt {c d} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 45, normalized size = 1.12 \begin {gather*} \frac {a \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{\sqrt {c d}}-\frac {b c \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{\sqrt {c d}\, d}+\frac {b x}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 3.00, size = 34, normalized size = 0.85 \begin {gather*} \frac {b x}{d} - \frac {{\left (b c - a d\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{\sqrt {c d} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 31, normalized size = 0.78 \begin {gather*} \frac {b\,x}{d}+\frac {\mathrm {atan}\left (\frac {\sqrt {d}\,x}{\sqrt {c}}\right )\,\left (a\,d-b\,c\right )}{\sqrt {c}\,d^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.28, size = 82, normalized size = 2.05 \begin {gather*} \frac {b x}{d} - \frac {\sqrt {- \frac {1}{c d^{3}}} \left (a d - b c\right ) \log {\left (- c d \sqrt {- \frac {1}{c d^{3}}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{c d^{3}}} \left (a d - b c\right ) \log {\left (c d \sqrt {- \frac {1}{c d^{3}}} + x \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________